<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
	<meta charset="UTF-8" />
	<title>系统登录</title>
		<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
		<script src="/js/jquery-2.1.1.min.js"></script>
		<script type="text/javascript">
			function login(){
				var userId = $("#userId").val();
				$.post("doLogin",{userId:userId},function(res){
					if(res.code==200){
						location.href="process";
					}else{
						alert(res.error);
					}
	            },"json");
			}
		</script>
	</head>
	<body style="padding:200px;text-align:center">
		<div class="alert alert-info" role="alert">
			<form class="form-inline">
			  <div class="form-group">
			    <label for="exampleInputName2">Name</label>
			    <input type="text" class="form-control" id="userId" value="admin" name="userId" placeholder="用户名">
			  </div>
			  <div class="form-group">
			    <label for="exampleInputEmail2">Password</label>
			    <input type="password" class="form-control" id="pwd" >
			  </div>
			  <button type="button" onclick="login()" class="btn btn-primary">登录</button>
			</form>
		</div>
	</body>
</html>